]> dgit.raspbian.org Git - gnome-shell.git/commit
shell/tray-manager: Only create resources when needed
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 4 Mar 2020 22:12:29 +0000 (23:12 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Fri, 6 Mar 2020 18:45:21 +0000 (18:45 +0000)
commit07bbcb1b4805510b3dc7ab4df507ae878407b762
treeb7ff8d5eb9327dd4dc99a40183251ca34c6c3234
parentf4ea9074d07d7f23547e40a630fef7729e2ff5ba
shell/tray-manager: Only create resources when needed

NaTrayManager in particular is deeply tied to X11. We currently assume
that X11 support is always available, but that is already not true
anymore - Xwayland startup is now asynchronous.

It will be even less true once we handle Xwayland crashes gracefully.

Start addressing that by not creating the corresponding resources once
and assume they exist for the lifetime of Shell.TrayManager, but make
sure they exist when actually needed.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/2308
src/shell-tray-manager.c